package com.itfallrain.service;

import com.itfallrain.common.UserAuth;
import com.itfallrain.dao.AuthMapper;
import com.itfallrain.dao.UserMapper;
import com.itfallrain.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MainService {
    @Autowired
    private AuthMapper authMapper;
    @Autowired
    private UserMapper userMapper;
    public List<Map<String,Object>> selectAuthById(Integer id){

        return authMapper.selectAuthById(id);
   }
//   修改密码
   public int repwd(User u){
        return userMapper.updateByPrimaryKeySelective(u);
   }

}
